function sixcitcalc(year, month, time, count, saymonths, address){

var sixcitscore=0;
var severity ="normal cognitive function.";

if (year){year=4;}else{year=0;}
if (month){month=3;}else{month=0;}
if (time){time=3;}else{time=0;}

sixcitscore= year + month + time + count + saymonths + address;


if (sixcitscore > 7) {
severity="abnormal cognitive function";
}


return {
			 sixcitscore:sixcitscore,
			 severity:severity
	};		 
}



function ref(){
// display reference
var ref1="Brooke P, Bullock R; Validation of a 6 item cognitive impairment test with a view to primary care usage. <a href='http://www.ncbi.nlm.nih.gov/pubmed/10556864?dopt=Abstract'>Int J Geriatr Psychiatry. 1999 Nov;14(11):936-40</a>";
var ref2="<br /r>See also <a href='http://www.patient.co.uk/showdoc/40026041/'>Patient UK site</a>";
return ref1 + ref2;
}
